package com.woniuxy.stage3demo.service.chenyxuanService;

import com.github.pagehelper.PageInfo;
import com.woniuxy.stage3demo.bean.chenyuxuanBean.OptLogBean;
import com.woniuxy.stage3demo.bean.chenyuxuanBean.StaffBean;
import com.woniuxy.stage3demo.pageHelper.PageRequest;


public interface IOptService {
    /**
     * 添加操作日志
     * @return
     */
     int addOptLog(OptLogBean optLogBean,StaffBean staffBean);

    /**
     * 分页查询所有操做日志
     * @return
     */
    PageInfo<OptLogBean> findAllOptLog(PageRequest pageRequest, OptLogBean optLogBean);

    /**
     * 根据ID查询操作日志
     * @param id
     * @return
     */
    OptLogBean findOneOptLog(int id);

    /**
     * 修改日志
     * @param optLogBean
     * @return
     */
    int updateOptLog(OptLogBean optLogBean);

    /**
     * 删除日志改变删除标记
     *
     * @param id
     */
    int deleteOpt(int id);
}
